import AgreeOnlyRefund from '../components/AgreeOnlyRefund';
import AgreeBuyerRefund from '../components/AgreeBuyerRefund';
import AgreeRefundReturned from '../components/AgreeRefundReturned';
import AgreeExchange from '../components/AgreeExchange';
import RefuseBuyer from '../components/RefuseBuyer';
import CreateAfterSales from '../components/CreateAfterSales';
import HandleResultQuery from '../components/HandleResultQuery';
import VertifyExportCode from "@/views/components/VertifyExportCode";


//弹框集合
function ActionMap(props) {
	const { ModalProps, modalName } = props;
	const ModalComp = {
		/** 同意仅退款 */
		'AgreeOnlyRefund': <AgreeOnlyRefund {...ModalProps} />,

		/** 同意买家退货 */
		'AgreeBuyerRefund': <AgreeBuyerRefund {...ModalProps} />,

		/** 买家已退货，同意退款 */
		'AgreeRefundReturned': <AgreeRefundReturned {...ModalProps} />,

		/** 同意补发/换货 */
		'AgreeExchange': <AgreeExchange {...ModalProps} />,

		/** 拒绝相关操作 */
		'RefuseBuyer': <RefuseBuyer {...ModalProps} />,

		/** 新建售后单 */
		'CreateAfterSales': <CreateAfterSales {...ModalProps} />,

		/** 无信息件认领 */
		'unInfoClaim': <CreateAfterSales {...ModalProps} />,

		/** 处理结果查询 */
		'HandleResultQuery': <HandleResultQuery {...ModalProps} />,

		/** 验证手机号导出 */
		'VertCodeExport': <VertifyExportCode {...ModalProps} />,
	}

	return ModalComp[modalName] || null;
}

export default ActionMap;